package com.imau.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imau.bean.Permission;
import org.apache.ibatis.annotations.Insert;

import java.util.List;
import java.util.Map;

public interface PermissionMapper extends BaseMapper<Permission> {


    @Insert("insert into  t_permission (id, description, name, type, code, en_visible,pid) VALUES " +
            "(#{id},#{description},#{name},#{type},#{code},#{enVisible},#{pid}) ")
    int addByMap(Map<String, Object> bean);


    int updateByMap(Map<String, Object> bean);


    List<Permission> getAll(Map<String, Object> map);



}
